{% extends 'base.html.twig' %}

{% block body_id 'user_password' %}

{% block main %}
    <h1>{{ 'title.change_password'|trans }}</h1>

    <div class="alert alert-info" role="alert">{{ 'info.change_password'|trans }}</div>

    {{ form_start(form) }}
        {{ form_widget(form) }}

        <button type="submit" class="btn btn-primary">
            <twig:ux:icon name="tabler:save-changes"/> {{ 'action.save'|trans }}
        </button>
    {{ form_end(form) }}
{% endblock %}

{% block sidebar %}
    <div class="section">
        <a href="{{ path('user_edit') }}" class="btn btn-lg btn-block btn-danger">
            <twig:ux:icon name="tabler:pencil"/> {{ 'action.edit_user'|trans }}
        </a>
    </div>

    {{ parent() }}

    {{ show_source_code(_self) }}
{% endblock %}
